package scanSpring;


import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import java.util.List;
@Controller //控制层注解 id=employerController
public class EmployerController {
    @Resource(name="employerServiceI")
    private EmployerService es;

    public List<Employer> findEmployer(){
        return es.findEmployer();
    }

    public double getAvgSalary(){
        return es.calcAvgSalary();
    }

}
